import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type Result = {
  success: boolean;
  msg: string;
  data: Array<any>;
};
// 业务信息统计
export const getAsyncywxxtjs = (data?: object) => {
  console.log("请求的数据", data);
  // return http.request<Result>("post", "/yw-ywxxtj-routes", { data });
  return http.request<Result>("post", baseUrlApi("business_statistics/"), {
    data
  });
};
// 已办事项
export const getAsyncybsxs = () => {
  return http.request<Result>("get", "/shenpi-ybsx-routes");
};
// 填报人可撤回事项
export const getAsyncscsxs = () => {
  return http.request<Result>("get", "/shenpi-recall-routes");
};
// 驳回事项
export const getAsynchdbsxs = () => {
  return http.request<Result>("get", "/shenpi-hdbsx-routes");
};
